const routes = [
  {
    path: '/',
    name: 'tabbar',
    component: () => import('../views/Tabbar.vue'),
    children: [
      {
        path: '/index/home',
        name: 'home',
        component: () => import('../views/index/Home.vue'),
      },
      {
        path: '/index/baobaotuan',
        name: 'baobaotuan',
        component: () => import('../views/index/Baobaotuan.vue')
      },
      {
        path: '/index/order',
        name: 'order',
        component: () => import('../views/index/Order.vue')
      },
      {
        path: '/index/mine',
        name: 'order',
        component: () => import('../views/index/Mine.vue')
      },
      {
        path: '/',
        redirect: '/index/home',
      },
      {
        path:'*', 
        component: () => import('../views/NotFound.vue')
      }
    ]
  },
]
export default routes;